summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-01-20 09:18:48 +0100
committert895 <clombardo169@gmail.com>2024-01-20 09:18:48 +0100
commitdad48f16b7469cf4fac3fa857082313618eada75 (patch)
tree74b8ee92f179bcfa07f30ae86bb0b5369f1d2804
parentMerge pull request #12713 from shinra-electric/mvk-127 (diff)
downloadyuzu-dad48f16b7469cf4fac3fa857082313618eada75.tar
yuzu-dad48f16b7469cf4fac3fa857082313618eada75.tar.gz
yuzu-dad48f16b7469cf4fac3fa857082313618eada75.tar.bz2
yuzu-dad48f16b7469cf4fac3fa857082313618eada75.tar.lz
yuzu-dad48f16b7469cf4fac3fa857082313618eada75.tar.xz
yuzu-dad48f16b7469cf4fac3fa857082313618eada75.tar.zst
yuzu-dad48f16b7469cf4fac3fa857082313618eada75.zip
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt
index 64b295fbd..20b10b1a0 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt
@@ -136,14 +136,14 @@ class SearchFragment : Fragment() {
baseList.filter {
val lastPlayedTime = preferences.getLong(it.keyLastPlayedTime, 0L)
lastPlayedTime > (System.currentTimeMillis() - 24 * 60 * 60 * 1000)
- }
+ }.sortedByDescending { preferences.getLong(it.keyLastPlayedTime, 0L) }
}
R.id.chip_recently_added -> {
baseList.filter {
val addedTime = preferences.getLong(it.keyAddedToLibraryTime, 0L)
addedTime > (System.currentTimeMillis() - 24 * 60 * 60 * 1000)
- }
+ }.sortedByDescending { preferences.getLong(it.keyAddedToLibraryTime, 0L) }
}
R.id.chip_homebrew -> baseList.filter { it.isHomebrew }